home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / rest.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  136 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6.     <PROPS>
  7.         <PROPERTY NAME="lineComment" VALUE=".. "/>
  8.         <!-- indent after literal blocks and directives -->
  9.         <PROPERTY NAME="indentNextLines" VALUE=".*::$"/>
  10.     </PROPS>
  11.  
  12.     <RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="FALSE">
  13.  
  14.         <!-- targets -->
  15.         <EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD3">__</EOL_SPAN>
  16.         <EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD3">.. _</EOL_SPAN>
  17.  
  18.         <!-- section titles -->
  19.         <SEQ_REGEXP HASH_CHAR="===" TYPE="LABEL">={3,}</SEQ_REGEXP>
  20.         <SEQ_REGEXP HASH_CHAR="---" TYPE="LABEL">-{3,}</SEQ_REGEXP>
  21.         <SEQ_REGEXP HASH_CHAR="~~~" TYPE="LABEL">~{3,}</SEQ_REGEXP>
  22.         <SEQ_REGEXP HASH_CHAR="###" TYPE="LABEL">#{3,}</SEQ_REGEXP>
  23.         <SEQ_REGEXP HASH_CHAR='"""' TYPE="LABEL">"{3,}</SEQ_REGEXP>
  24.         <SEQ_REGEXP HASH_CHAR="^^^" TYPE="LABEL">\^{3,}</SEQ_REGEXP>
  25.         <SEQ_REGEXP HASH_CHAR="+++" TYPE="LABEL">\+{3,}</SEQ_REGEXP>
  26.         <SEQ_REGEXP HASH_CHAR="***" TYPE="LABEL">\*{3,}</SEQ_REGEXP>
  27.  
  28.         <!-- replacement -->
  29.         <SEQ_REGEXP
  30.             HASH_CHAR=".."
  31.             AT_LINE_START="TRUE"
  32.             TYPE="LITERAL3"
  33.         >\.\.\s\|[^|]+\|</SEQ_REGEXP>
  34.  
  35.         <!-- substitution -->
  36.         <SEQ_REGEXP
  37.             HASH_CHAR="|"
  38.             AT_LINE_START="FALSE"
  39.             TYPE="LITERAL4"
  40.         >\|[^|]+\|</SEQ_REGEXP>
  41.  
  42.         <!-- directives: .. name:: -->
  43.         <SEQ_REGEXP
  44.             HASH_CHAR=".."
  45.             AT_LINE_START="TRUE"
  46.             TYPE="LITERAL2"
  47.         >\.\.\s[A-z][A-z0-9-_]+::</SEQ_REGEXP>
  48.  
  49.         <!-- strong emphasis: **...** -->
  50.         <SEQ_REGEXP
  51.             HASH_CHAR="**"
  52.             AT_LINE_START="FALSE"
  53.             TYPE="KEYWORD2"
  54.         >\*\*[^*]+\*\*</SEQ_REGEXP>
  55.  
  56.         <!-- emphasis: *...* -->
  57.         <SEQ_REGEXP
  58.             HASH_CHAR="*"
  59.             AT_LINE_START="FALSE"
  60.             TYPE="KEYWORD4"
  61.         >\*[^\s*][^*]*\*</SEQ_REGEXP>
  62.  
  63.         <!-- comments -->
  64.         <EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT1">.. </EOL_SPAN>
  65.  
  66.         <!-- links: `...`_ or `...`__ -->
  67.         <SEQ_REGEXP
  68.             HASH_CHAR="`"
  69.             TYPE="LABEL"
  70.         >`[A-z0-9]+[^`]+`_{1,2}</SEQ_REGEXP>
  71.  
  72.         <!-- footnote reference: [0]_ -->
  73.         <SEQ_REGEXP
  74.             HASH_CHAR="["
  75.             TYPE="LABEL"
  76.         >\[[0-9]+\]_</SEQ_REGEXP>
  77.  
  78.         <!-- footnote reference: [#]_ or [#foo]_ -->
  79.         <SEQ_REGEXP
  80.             HASH_CHAR="[#"
  81.             TYPE="LABEL"
  82.         >\[#[A-z0-9_]*\]_</SEQ_REGEXP>
  83.  
  84.         <!-- footnote reference: [*]_ -->
  85.         <SEQ TYPE="LABEL">[*]_</SEQ>
  86.  
  87.         <!-- citation reference: [foo]_ -->
  88.         <SEQ_REGEXP
  89.             HASH_CHAR="["
  90.             TYPE="LABEL"
  91.         >\[[A-z][A-z0-9_-]*\]_</SEQ_REGEXP>
  92.  
  93.         <!-- inline literal: ``...``-->
  94.         <!--<SEQ_REGEXP
  95.             HASH_CHAR="``"
  96.             TYPE="LITERAL1"
  97.         >``[^`]+``</SEQ_REGEXP>-->
  98.         <SPAN TYPE="LITERAL1" ESCAPE="\">
  99.             <BEGIN>``</BEGIN>
  100.             <END>``</END>
  101.         </SPAN>
  102.  
  103.         <!-- interpreted text: `...` -->
  104.         <!--
  105.         <SEQ_REGEXP
  106.             HASH_CHAR="`"
  107.             TYPE="KEYWORD1"
  108.         >`[^`]+`</SEQ_REGEXP>
  109.         -->
  110.         <SPAN TYPE="KEYWORD1">
  111.             <BEGIN>`</BEGIN>
  112.             <END>`</END>
  113.         </SPAN>
  114.  
  115.         <SEQ_REGEXP HASH_CHAR="```" TYPE="LABEL">`{3,}</SEQ_REGEXP>
  116.  
  117.         <!-- :field list: -->
  118.         <SEQ_REGEXP
  119.             HASH_CHAR=":"
  120.             TYPE="KEYWORD1"
  121.         >:[A-z][A-z0-9     =\s\t_]*:</SEQ_REGEXP>
  122.  
  123.         <!-- table -->
  124.         <SEQ_REGEXP
  125.             HASH_CHAR="+-"
  126.             TYPE="LABEL"
  127.         >\+-[+-]+</SEQ_REGEXP>
  128.         <SEQ_REGEXP
  129.             HASH_CHAR="+?"
  130.             TYPE="LABEL"
  131.         >\+=[+=]+</SEQ_REGEXP>
  132.  
  133.     </RULES>
  134.  
  135. </MODE>
  136.